<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <div th:replace="authority/common/back/head"></div>
    <link rel="stylesheet" th:href="@{/authority/css/index.css}">
</head>
<script>
    if (top.window.location.href != window.location.href) top.window.location.href = window.location.href;
</script>
<body class="main_body">
<div class="layui-layout layui-layout-admin">
    <!-- 顶部 -->
    <div class="layui-header header">
        <div class="layui-main mag0">
            <!--/*@thymesVar id="projectName" type="java.lang.String"*/-->
            <a href="#" class="logo" th:text="${projectName}"></a>
            <!-- 显示/隐藏菜单 -->
            <a href="javascript:;" class="seraph hideMenu icon-caidan"></a>
            <!-- 顶级菜单 -->
            <!--<ul class="layui-nav mobileTopLevelMenus" mobile>-->
            <!--<li class="layui-nav-item" data-menu="contentManagement">-->
            <!--<a href="javascript:;"><i class="seraph icon-caidan"></i><cite>layuiCMS</cite></a>-->
            <!--<dl class="layui-nav-child">-->
            <!--<dd class="layui-this" data-menu="contentManagement"><a href="javascript:;"><i-->
            <!--class="layui-icon" data-icon="&#xe63c;">&#xe63c;</i><cite>内容管理</cite></a></dd>-->
            <!--<dd data-menu="memberCenter"><a href="javascript:;"><i class="seraph icon-icon10"-->
            <!--data-icon="icon-icon10"></i><cite>用户中心</cite></a>-->
            <!--</dd>-->
            <!--<dd data-menu="systemeSttings"><a href="javascript:;"><i class="layui-icon"-->
            <!--data-icon="&#xe620;">&#xe620;</i><cite>系统设置</cite></a>-->
            <!--</dd>-->
            <!--<dd data-menu="seraphApi"><a href="javascript:;"><i class="layui-icon" data-icon="&#xe705;">&#xe705;</i><cite>使用文档</cite></a>-->
            <!--</dd>-->
            <!--</dl>-->
            <!--</li>-->
            <!--</ul>-->
            <!--<ul class="layui-nav topLevelMenus" pc>-->
            <!--<li class="layui-nav-item layui-this" data-menu="contentManagement">-->
            <!--<a href="javascript:;"><i class="layui-icon" data-icon="&#xe63c;">&#xe63c;</i><cite>内容管理</cite></a>-->
            <!--</li>-->
            <!--<li class="layui-nav-item" data-menu="memberCenter" pc>-->
            <!--<a href="javascript:;"><i class="seraph icon-icon10"-->
            <!--data-icon="icon-icon10"></i><cite>用户中心</cite></a>-->
            <!--</li>-->
            <!--<li class="layui-nav-item" data-menu="systemeSttings" pc>-->
            <!--<a href="javascript:;"><i class="layui-icon" data-icon="&#xe620;">&#xe620;</i><cite>系统设置</cite></a>-->
            <!--</li>-->
            <!--<li class="layui-nav-item" data-menu="seraphApi" pc>-->
            <!--<a href="javascript:;"><i class="layui-icon" data-icon="&#xe705;">&#xe705;</i><cite>使用文档</cite></a>-->
            <!--</li>-->
            <!--</ul>-->
            <!-- 顶部右侧菜单 -->
            <ul class="layui-nav top_menu">
                <li class="layui-nav-item" pc>
                    <a href="javascript:void(0);" class="clearCache">
                        <i class="layui-icon" data-icon="&#xe640;">&#xe640;</i>
                        <cite>清除缓存</cite><span class="layui-badge-dot"></span>
                    </a>
                </li>
                <!--<li class="layui-nav-item lockcms" pc>-->
                <!--<a href="javascript:;"><i class="seraph icon-lock"></i><cite>锁屏</cite></a>-->
                <!--</li>-->
                <li class="layui-nav-item" id="userInfo">
                    <a href="javascript:;">
                        <!--<img src="images/face.jpg" class="layui-nav-img userAvatar" width="35" height="35">-->
                        <!--<cite class="adminName">-->
                        <!--<span sec:authentication="name"></span>-->
                        <!--</cite>-->
                        <span th:if="${!#strings.isEmpty(session.SPRING_SECURITY_CONTEXT.authentication.principal.name)}"
                              th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.name}"></span>

                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="page/user/userInfo.html"><i class="seraph icon-ziliao"
                                                                                         org.springframework.security.core
                                                                                         data-icon="icon-ziliao"></i><cite>个人资料</cite></a>
                        </dd>
                        <!--/*@thymesVar id="changePasswordPageUrl" type="java.lang.String"*/-->
                        <dd><a href="javascript:;" th:attr="data-url=@{${changePasswordPageUrl}}"><i
                                class="seraph icon-xiugai"
                                data-icon="icon-xiugai"></i><cite>修改密码</cite></a>
                        </dd>
                        <dd><a href="javascript:;" class="showNotice"><i
                                class="layui-icon">&#xe645;</i><cite>系统公告</cite><span
                                class="layui-badge-dot"></span></a></dd>
                        <dd pc><a href="javascript:;" class="functionSetting"><i class="layui-icon">&#xe620;</i><cite>功能设定</cite><span
                                class="layui-badge-dot"></span></a></dd>
                        <dd pc><a href="javascript:;" class="changeSkin"><i
                                class="layui-icon">&#xe61b;</i><cite>更换皮肤</cite></a></dd>
                        <dd><a th:href="@{${session.user_logout_url}}" class="signOut"><i
                                class="seraph icon-tuichu"></i><cite>退出</cite></a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧导航 -->
    <div class="layui-side layui-bg-black">
        <div class="user-photo" style="height: auto">
            <!--<a class="img" title="我的头像" ><img src="images/face.jpg" class="userAvatar"></a>-->
            <p>你好！<span class="userName">
                <!--<span sec:authentication="principal.name"></span>-->
                <span th:if="${!#strings.isEmpty(session.SPRING_SECURITY_CONTEXT.authentication.principal.name)}"
                      th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.name}"></span>
                </span>, 欢迎登录</p>
        </div>
        <!-- 搜索 -->
        <!--<div class="layui-form component">-->
        <!--<select name="search" id="search" lay-search lay-filter="searchPage">-->
        <!--<option value="">搜索页面或功能</option>-->
        <!--<option value="1">layer</option>-->
        <!--<option value="2">form</option>-->
        <!--</select>-->
        <!--<i class="layui-icon">&#xe615;</i>-->
        <!--</div>-->
        <div class="navBar layui-side-scroll" id="navBar">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item layui-this">
                    <a href="javascript:;" data-url="page/main.html"><i class="layui-icon"
                                                                        data-icon=""></i><cite>后台首页</cite></a>
                </li>
            </ul>
        </div>
    </div>
    <!-- 右侧内容 -->
    <div class="layui-body layui-form">
        <div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
            <ul class="layui-tab-title top_tab" id="top_tabs">
                <li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite>后台首页</cite></li>
            </ul>
            <ul class="layui-nav closeBox">
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon caozuo">&#xe643;</i> 页面操作</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="refresh refreshThis"><i class="layui-icon">&#xe669;</i>
                            刷新当前</a></dd>
                        <dd><a href="javascript:;" class="closePageOther"><i class="seraph icon-prohibit"></i> 关闭其他</a>
                        </dd>
                        <dd><a href="javascript:;" class="closePageAll"><i class="seraph icon-guanbi"></i> 关闭全部</a></dd>
                    </dl>
                </li>
            </ul>
            <div class="layui-tab-content clildFrame">
                <div class="layui-tab-item layui-show">
                    <iframe th:src="@{/authority/welcome.html}"></iframe>
                </div>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="layui-footer footer">
        <!--/*@thymesVar id="companyName" type="java.lang.String"*/-->
        <p><span>copyright @2018 </span><span th:text="${companyName}"></span></p>
    </div>
</div>

<!-- 移动导航 -->
<div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
<div class="site-mobile-shade"></div>

<div th:replace="authority/common/back/footer"></div>

<script type="text/javascript" th:src="@{/authority/js/index.js}"></script>
<script type="text/javascript" th:src="@{/authority/js/cache.js}"></script>
</body>
</html>